package org.gd.hellojaxb.example.list;

import org.gd.hellojaxb.interfaces.XmlObject;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.List;

@XmlRootElement//(namespace = "org.gd.hellojaxb.examplel")
public class Bookstore extends XmlObject {

    @XmlElementWrapper(name = "book_list")
    @XmlElement(name = "book")
    private List<Book> bookList;
    private String name;
    private String location;
    private Author author;

    public Author getAuthor() {
        return author;
    }

    public void setAuthor(Author author) {
        this.author = author;
    }

    public void setBookList(List<Book> bookList) {
        this.bookList = bookList;
    }

    public List<Book> getBooksList() {
        return bookList;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }
}